<HTML><HEAD><TITLE>suspensions(-Susps)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">Advanced Control and Suspensions</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>suspensions(-Susps)</H1>
Returns a list of all currently live (sleeping or scheduled) suspensions.


<DL>
<DT><EM>Susps</EM></DT>
<DD>A variable.
</DD>
</DL>
<H2>Description</H2>
   Suspensions in ECLiPSe go through several stages: They are created,
   attached to variables or symbolic triggers, later scheduled for execution,
   and finally executed.

<P>
   suspension/1 returns a list of all currently live suspensions.
   They may be either sleeping or already scheduled for execution.
   It does not return any dead suspensions.

<P>
   Note: If you are looking for one particular suspension, consider
   using current_suspension/1 instead.

<P>

<H3>Modes and Determinism</H3><UL>
<LI>suspensions(-) is det
</UL>
<H2>Examples</H2>
<PRE>
    [eclipse 6]: suspend(writeln(a),3,X-&gt;inst),
                 suspend(writeln(b),5,Y-&gt;inst),
                 suspensions(S).

    X = X
    Y = Y
    S = ['SUSP-_358-susp', 'SUSP-_376-susp']

    Delayed goals:
            writeln(a)
            writeln(b)
    yes.




</PRE>
<H2>See Also</H2>
<A HREF="../../kernel/suspensions/current_suspension-1.html">current_suspension / 1</A>, <A HREF="../../kernel/suspensions/delayed_goals-1.html">delayed_goals / 1</A>, <A HREF="../../kernel/suspensions/make_suspension-3.html">make_suspension / 3</A>, <A HREF="../../kernel/suspensions/kill_suspension-1.html">kill_suspension / 1</A>, <A HREF="../../kernel/suspensions/schedule_suspensions-1.html">schedule_suspensions / 1</A>, <A HREF="../../kernel/suspensions/schedule_suspensions-2.html">schedule_suspensions / 2</A>, <A HREF="../../kernel/suspensions/suspend-3.html">suspend / 3</A>, <A HREF="../../kernel/suspensions/suspend-4.html">suspend / 4</A>, <A HREF="../../kernel/suspensions/get_suspension_data-3.html">get_suspension_data / 3</A>
</BODY></HTML>
